import { Module } from '@nestjs/common';
import { DatabaseModule } from '../../database/database.module';
import { Constants } from '../../constants/constants';
import { Groups } from '../../database/schemas/groups.schema';
import { GroupsService } from './groups.service';

@Module({
  imports: [DatabaseModule],
  providers: [
    ...DatabaseModule.modelProviders([
      {
        name: Constants.MODELS.GROUP,
        clazz: Groups
      }
    ]),
    GroupsService
  ]
})
export class GroupsModule {}
